package KAs;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class EntryDetry {
    public static void main(String[] args) throws IOException {
        //文件的加密与解密
        FileInputStream fis=new FileInputStream("机密文件.txt");
        FileOutputStream fos=new FileOutputStream("加密文档.txt");
        //拷贝
        int len;
        //byte[] bytes=new byte[64];
        while ((len=fis.read())!=-1){
            fos.write(len^6);
        }
        fos.close();
        fis.close();
    }
}
